﻿using SimpleServiceBus.Configuration;
using SimpleServiceBus.Endpoint;
using SimpleServiceBus.Endpoints.Msmq.Transport;

namespace SimpleServiceBus.Endpoints.Msmq.Configuration
{
    public class MsmqEndpointBuilder<EndpointType> : EndpointBuilder<EndpointType,MsmqTransport>
        where EndpointType : class, IMessagingEndpoint
    {
        public bool PurgeOnStartup
        {
            get { return Transport.PurgeOnStartup; }
            set { Transport.PurgeOnStartup = value; }
        }

        public bool ReceiveQueueIsTransactional
        {
            get { return Transport.ReceiveQueueIsTransactional; }
            set { Transport.ReceiveQueueIsTransactional = value; }
        }

        public bool DestinationQueueIsTransactional
        {
            get { return Transport.DestinationQueueIsTransactional; }
            set { Transport.DestinationQueueIsTransactional = value; }
        }

        public bool AttachSenderId
        {
            get { return Transport.AttachSenderId; }
            set { Transport.AttachSenderId = value; }
        }
    }
}